/**
 * Project Name:OilsOrder.java
 * File Name:OilsOrder.java
 * Date:2019/3/18 15:38
 * Copyright (c) 2019, zhang.xiangyu@foxmail.com All Rights Reserved.
 */
package com.meatball.order.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;
import com.meatball.base.BaseEntity;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

/**   
 * @Title: OilsOrder.java
 * @Description: todo(油品订单)
 * @Author: 張翔宇
 * @Date: 2019/3/18 15:38 
 * @Version: V1.0   
 */
@Data
@Document(value = "oils_order")
public class OilsOrder extends BaseEntity {
    /**
     * 油品单号
     */
    private String oilsorderNo;

    /**
     * 总订单id
     */
    private String blanketOrderId;

    /**
     * 油站id
     */
    private String oilStationId;

    /**
     * 班组id
     */
    private String squadId;

    /**
     * 班组执勤Id
     */
    private String dutyId;

    /**
     * 加油员ID
     */
    private String refuelStaffId;

    /**
     * 加油员名称
     */
    private String refuelStaffName;

    /**
     * 收银员ID
     */
    private String staffId;

    /**
     * 收银员名称
     */
    private String salesperson;

    /**
     * 加油员执勤Id
     */
    private String staffDutyId;

    /**
     * 是否临时会员，默认不是
     */
    private Boolean interim;

    /**
     * 会员id
     */
    private String memberId;

    /**
     * 会员名称
     */
    private String memberName;

    /**
     * 会员编号
     */
    private String memberNum;

    /**
     * 会员手机号
     */
    private String memberPhone;

    /**
     * 油枪ID
     */
    private String oilGunId;

    /**
     * 油枪名称
     */
    private String oilGunName;

    /**
     * 油品ID
     */
    private String oilsId;

    /**
     * 优惠券ID
     */
    private String couponId;

    /**
     * 活动ID
     */
    private String detailId;

    /**
     * 活动类型,1油站活动 2等级活动
     */
    private Integer activityType;

    /**
     * 油品名称
     */
    private String oilsName;

    /**
     * 油品类别
     */
    private String oilsCategory;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 销售价格
     */
    private BigDecimal sellingPrice;

    /**
     * 数量
     */
    private BigDecimal quantity;

    /**
     * 订单金额
     */
    private BigDecimal oilMoney;

    /**
     * 优惠
     */
    private BigDecimal discounts;

    /**
     * 优惠券优惠
     */
    private BigDecimal couponDis;

    /**
     * 油站优惠
     */
    private BigDecimal grantDis;

    /**
     * 每升优惠
     */
    private BigDecimal priceDis;

    /**
     * 实际付款
     */
    private BigDecimal copeWith;

    /**
     * 退款
     */
    private BigDecimal refundMoney;

    /**
     * 订单生成时间
     */
    @JSONField(serializeUsing = DateSerializer.class)
    private Date orderGenerationTime;

    /**
     * 订单完成时间
     */
    @JSONField(serializeUsing = DateSerializer.class)
    private Date orderCompletionTime;

    /**
     * 支付信息ID
     */
    private String paymentId;

    /**
     * 支付编号
     */
    private String paymentNumber;

    /**
     * 支付种类
     */
    private Integer paymentType;

    /**
     * 支付方式
     */
    private Integer paymentMethod;

    /**
     * 订单来源
     */
    private Integer orderSource;

    /**
     * 结算方式
     */
    private Integer tradeType;

    /**
     * 是否单独油品订单
     */
    private Boolean singly;

    /**
     * 版本，0基础版，1减配版，2标准版
     */
    private Integer version;

    /**
     * 退款状态，0正常 1退款
     */
    private Integer refundSta;

    /**
     * 订单状态
     */
    private Integer oilSta;
}
